package org.jeecg.modules.wangyue.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.wangyue.entity.PointsFlow;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.wangyue.entity.UserRoleInfo;
import org.jeecg.modules.wangyue.model.req.ReqPointsModel;

/**
 * @Description: 积分流水表
 * @Author: jeecg-boot
 * @Date:   2023-09-08
 * @Version: V1.0
 */
public interface IPointsFlowService extends IService<PointsFlow> {

    /**
     * 刷广告获得积分
     * @param userRoleInfo
     * @return
     */
    Result<?> advertisementGainPoints(UserRoleInfo userRoleInfo);


    /**
     * 积分兑换金额
     * @param reqPointsModel
     * @return
     */
    Result<?> redemptionAmountOfPoints(ReqPointsModel reqPointsModel);



}
